﻿@model AncientLand.Service.Entity.PageItem
<div class="navigationbox">
	<div class='wp-pagenavi'>
		<span class='pages'>当前页  @Model.CurrentPage/@Model.TotalPages</span>
        @if (Model.CurrentPage > 1)
        {
             @Html.ActionLink("首页", Model.ActionName, Model.ControllerName, new { page = 1 }, new { @class = "page larger" })
             @Html.ActionLink("上一页", Model.ActionName, Model.ControllerName, new { page = Model.CurrentPage - 1 }, new { @class = "page larger" })
        }
        else
        {
            <span class='current'>首页</span><span class='current'>上一页</span>
        }

        @if (Model.CurrentPage < Model.TotalPages)
        {
            @Html.ActionLink("下一页", Model.ActionName, Model.ControllerName, new { page = Model.CurrentPage + 1 }, new { @class = "page larger" })
             @Html.ActionLink("最后一页", Model.ActionName, Model.ControllerName, new { page = Model.TotalPages }, new { @class = "page larger" })
        }
        else
        {
           <span class='current'>下一页</span><span class='current'>最后一页</span>
        }
   </div>
</div>

